﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Process.Model
{
    //BOM实体（头表）
    public class BomTable:Entity
    {
        /// <summary>
        /// BOM编号
        /// </summary>
        public string BOMCode { get; set; }
        /// <summary>
        /// BOM名称
        /// </summary>
        public string BOMTitle { get; set; }
        /// <summary>
        /// 关联产品（物品）ID，可选
        /// </summary>
        public int? ProductGoodsId { get; set; }
        /// <summary>
        /// 产品编号（冗余展示）
        /// </summary>
        public string ProductsCode { get; set; }
        /// <summary>
        /// 产品名称（冗余展示）
        /// </summary>
        public string ProductsName { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string ProductsModel { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string ProductsUnit { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 是否默认版本
        /// </summary>
        public bool Status { get; set; }
        /// <summary>
        /// 版本号
        /// </summary>
        public string Version { get; set; }
        /// <summary>
        /// 日产量
        /// </summary>
        public int Output { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Desc { get; set; }

        /// <summary>
        /// BOM物品明细集合
        /// </summary>
        public virtual ICollection<BomGoodsRelation> BomRelations { get; set; }
        /// <summary>
        /// BOM工艺明细集合
        /// </summary>
        public virtual ICollection<BomFlowRelation> BomFlowRelation { get; set; }
    }
}
